package View;

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import java.awt.CardLayout;
import javax.swing.JButton;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;

public class ProcesarElementosBasicos extends JFrame {

	private JPanel contentPane;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					ProcesarElementosBasicos frame = new ProcesarElementosBasicos();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public ProcesarElementosBasicos() {
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 450, 300);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(null);
		
		JButton btnGestionarProveedores = new JButton("Gestionar Proveedores");
		btnGestionarProveedores.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
			ProcesarSupplier su = new ProcesarSupplier();
			su.setVisible(true);
			}
		});
		btnGestionarProveedores.setBounds(118, 47, 199, 23);
		contentPane.add(btnGestionarProveedores);
		
		JButton btnGestionarCategorias = new JButton("Gestionar Categorias");
		btnGestionarCategorias.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
			ProcesarCategoria cat = new ProcesarCategoria();
			cat.setVisible(true);
			}
		});
		btnGestionarCategorias.setBounds(118, 81, 199, 23);
		contentPane.add(btnGestionarCategorias);
		
		JButton btnAdministracionDeProductos = new JButton("Administracion de Productos");
		btnAdministracionDeProductos.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
			GestionarProductos gest = new GestionarProductos();
			gest.setVisible(true);
			}
		});
		btnAdministracionDeProductos.setBounds(118, 115, 199, 23);
		contentPane.add(btnAdministracionDeProductos);
		
		JButton btnFacturacionDeOrdenes = new JButton("Facturacion de Ordenes");
		btnFacturacionDeOrdenes.setBounds(118, 149, 199, 23);
		contentPane.add(btnFacturacionDeOrdenes);
		
		JButton btnImporesionFiscal = new JButton("Impresion Fiscal");
		btnImporesionFiscal.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
			}
		});
		btnImporesionFiscal.setBounds(118, 183, 199, 23);
		contentPane.add(btnImporesionFiscal);
		
		JButton btnCerrar = new JButton("Cerrar");
		btnCerrar.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
			ProcesarElementosBasicos.this.dispose();
			GestionarUsuario gestionarUsuario = new GestionarUsuario();
			}
		});
		btnCerrar.setBounds(228, 217, 89, 23);
		contentPane.add(btnCerrar);
	}
}
